package com.lambo.maven.core.vo;

import javax.xml.bind.annotation.XmlRootElement;

import com.lambo.maven.core.utils.superHttp.core.StringUtils;

@XmlRootElement(name = "proxy")
public class ProxyConfig {

    private String type;
    private String ip;
    private String filter;
    private Integer port;

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getFilter() {
        return filter;
    }

    public String[] getFilters() {
        if(!StringUtils.isBlank(filter)) {
            return filter.split(",");
        }
        return null;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    public Integer getPort() {
        return this.port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

}
